const mongoose = require('mongoose')
const { Schema } = mongoose

// 用户表规则
const userDetail = new Schema({
  key: {
    type: String,
    required: true
  },
  articles: {
    type: Array
  },
  comments: {
    type: Array
  },
  likes: {
    type: Array
  },
  attentions: {
    type: Array
  },
  fans: {
    type: Array
  },
  blackList: {
    type: Array
  }
})

const userDetailTable = mongoose.model('userDetailTable', userDetail)

module.exports = userDetailTable